<%-- 
    Document   : ViewSubmittedWorkStatus
    Created on : 1/05/2008, 00:10:21
    Author     : DidierLeung
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="pageTitle" value="Submitted Assignment Status" scope="page"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${pageTitle}</title>
    </head>
    <body>
        <f:view>
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false"
                        style="color: red;
                        font-family: 'New Century Schoolbook', serif;
                        font-style: oblique"
                        id="errors"/>
            <table>
                <tr>
                    <td>
                        <h2>${pageTitle}</h2>
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td>
                        <h:dataTable id="submissionTable"
                                     columnClasses="list-column-center,
                                     list-column-right, list-column-center,
                                     list-column-right" headerClass="list-header"
                                     rowClasses="list-row" styleClass="list-background" border="1" rules="all"
                                     value="#{ViewStatusManagedBean.submittedWork}" var="submission">   
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText  value="Assignment"/>
                                </f:facet>
                                <h:outputText value="#{submission.assignmentName}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText  value="Status"/>
                                    </f:facet>
                                    <h:outputText value="#{submission.status}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText  value="Provisional Mark"/>
                                    </f:facet>
                                    <h:outputText value="#{submission.provisionalMark}"/>
                                </h:column>
                            </h:dataTable> 
                        </td>
                </tr>
            </table>
        </f:view>
    </body>
</html>


